package com.lxp.userms.mapper;

import com.lxp.userms.entity.ExpertAnswer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ExpertAnswerMapper {
    int insertAnswer(ExpertAnswer answer);
    List<ExpertAnswer> selectAllAnswers();
    List<ExpertAnswer> selectAnswersByUserId(int userId);
    List<ExpertAnswer> selectAnswersByExpertId(int expertId);
    int updateAnswer(ExpertAnswer answer);
    ExpertAnswer selectAnswerByQuestionId(int questionId);
    int deleteAnswersByQuestionId(int questionId);

}